home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / bc_pas_2.zip / PCMIO.H < prev    next >
Text File  |  1992-10-28  |  3KB  |  91 lines

  1. /*$Author:   DCODY  $*/
  2. /*$Date:   20 Oct 1992 09:47:14  $*/
  3. /*$Header:   X:/sccs/inc/pcmio.h_v   1.5   20 Oct 1992 09:47:14   DCODY  $*/
  4. /*$Log:   X:/sccs/inc/pcmio.h_v  $
  5.  * 
  6.  *    Rev 1.5   20 Oct 1992 09:47:14   DCODY
  7.  * added new error return value
  8.  * 
  9.  *    Rev 1.4   01 Oct 1992 12:15:20   DCODY
  10.  * added RecordThisBlock/PlayThisBlock/QueueThisBlock & parameter changes
  11.  * 
  12.  *    Rev 1.3   23 Sep 1992 10:31:12   DCODY
  13.  * added new function prototypes
  14.  * 
  15.  *    Rev 1.2   04 Sep 1992 16:40:52   DCODY
  16.  * 
  17.  *    Rev 1.1   25 Jun 1992 23:26:20   DCODY
  18.  * PAS2 update
  19.  * 
  20.  *    Rev 1.0   15 Jun 1992 09:58:46   BCRANE
  21.  * Initial revision.
  22. */
  23. /*$Logfile:   X:/sccs/inc/pcmio.h_v  $*/
  24. /*$Modtimes$*/
  25. /*$Revision:   1.5  $*/
  26. /*$Workfile:   pcmio.h  $*/
  27.  
  28. ;   /*\
  29. ;---|*|----====< pcmio.h >====----
  30. ;---|*|
  31. ;---|*| This is the header file for all the different PCMIOx.xxx modules
  32. ;---|*|
  33. ;---|*| Copyright (c) 1991, Media Vision, Inc.    All Rights Reserved.
  34. ;---|*|
  35. ;   \*/
  36.  
  37. ;   /*\
  38. ;---|*|----====< error that may happen... >====----
  39. ;   \*/
  40.  
  41. #define PCMIOERR_SAMPLERATE  2         /* bad sample rate requested    */
  42. #define PCMIOERR_OPENFILE    3         /* error opening the output file    */
  43. #define PCMIOERR_OPENPCM     4         /* error starting the PCM code    */
  44. #define PCMIOERR_NOMEM         5         /* error starting the PCM code    */
  45. #define PCMIOERR_BADDMA      6         /* bad requested DMA number    */
  46. #define PCMIOERR_BADIRQ      7         /* bad requested IRQ number de    */
  47. #define PCMIOERR_FILEFULL    8         /* cannot write data to the file    */
  48. #define PCMIOERR_NODRIVER    9         /* cannot locate the audio driver    */
  49.  
  50.     /* special error code for the RECORD.EXE program */
  51.  
  52. #define PCMIOERR_HELPS       1       /* not enough command line data    */
  53.  
  54.  
  55. ;   /*\
  56. ;---|*|----====< PCMIOC.C >====----
  57. ;   \*/
  58.  
  59.     void ClosePCMBuffering    ( );
  60.     int  ContinueFileInput    ( );
  61.     int  ContinueBlockInput ( char far * );
  62.     int  ContinueFileOutput ( );
  63.     int  ContinueBlockOutput( char far * );
  64.     int  OpenPCMBuffering    ( int,    int, int, int );
  65.     int  PCMState        ( long, int, int, int );
  66.     int  PlayThisBlock    ( char far*, unsigned long, void (far *)() );
  67.     int  QueueThisBlock    ( char far*, unsigned long, void (far *)() );
  68.     int  RecordThisBlock    ( char far*, unsigned long, void (far *)() );
  69.     int  StartFileInput    ( FILE * );
  70.     int  StartBlockInput    ( );
  71.     int  StartFileOutput    ( FILE *, long );
  72.     int  StartBlockOutput    ( char far * );
  73.     int  SyncCallBack    ( void (far *)() );
  74.     void StopDMAIO        ( );
  75.  
  76.  
  77. ;   /*\
  78. ;---|*|----====< PCMIOA.ASM >====----
  79. ;   \*/
  80.  
  81.     void BackgroundInit    ( int, int );
  82.     char far * FlushBuffer    ( char far *, int );
  83.     int  StartTheDMAOutput    ( int (*)() );
  84.     int  StartTheDMAInput    ( int (*)() );
  85.  
  86.  
  87. ;   /*\
  88. ;---|*| end of pcmio.h
  89. ;   \*/
  90.  
  91.